package com.brook.shop.order.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.brook.shop.order.domain.User;
import com.brook.shop.order.service.UserService;
@RestController
public class UserController {
	@Autowired
    private UserService userService;
	@GetMapping("/getUserById")
	public User getUserById(String id) {
		
		return userService.getUserById(id);
	}
}
